<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<nav class="navbar navbar-default top-navbar" role="navigation">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="index.html">Manage</a>
    </div>

    <ul class="nav navbar-top-links navbar-right">
        <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
                当前登录：${currentUser.userName}<i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
            </a>
            <ul class="dropdown-menu dropdown-user">
                <li>
                    <a href="#"><i class="fa fa-user fa-fw"></i> 个人中心</a>
                </li>
                <li>
                    <a href="#"><i class="fa fa-gear fa-fw"></i> 设置</a>
                </li>
                <li class="divider"></li>
                <li>
                    <a href="/logout"><i class="fa fa-sign-out fa-fw"></i> 切换账号</a>
                </li>
            </ul>
            <!-- /.dropdown-user -->
        </li>
        <!-- /.dropdown -->
    </ul>
</nav>
<!--/. NAV TOP -->
<nav class="navbar-default navbar-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav" id="main-menu">

            <li>
                <a class="active-menu" href="/"><i class="fa fa-dashboard"></i> 首页</a>
            </li>
            <li>
                <a href="#"><i class="fa fa-sitemap"></i> 用户管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="/userManage/addUser">新增用户</a>
                    </li>
                    <li>
                        <a href="/userManage/userList">用户列表</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#"><i class="fa fa-desktop"></i> 商家管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="/businessManage/addBusiness">新增商家</a>
                    </li>
                    <li>
                        <a href="/businessManage/businessList">商家列表</a>
                    </li>
                </ul>
            </li>
            <shiro:hasRole name="administrator">
                <li>
                    <a href="#"><i class="fa fa-sitemap"></i> 管理员管理<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a href="/adminManage/addAdmin">新增管理员</a>
                        </li>
                        <li>
                            <a href="/adminManage/adminList">管理员列表</a>
                        </li>
                    </ul>
                </li>
            </shiro:hasRole>
            <li>
                <a target="_Blank" href="https://docs.qq.com/doc/DZlhwVmhpWlJNYmJ5"><i class="fa fa-fw fa-file"></i> 帮助</a>
            </li>
            <li>
                <a href="/logout"><i class="fa fa-fw fa-clock-o"></i> 退出系统</a>
            </li>
        </ul>
    </div>
</nav>
<!-- /. NAV SIDE -->